﻿
/* 
 * Since 2008 - 2012
 */
package com.hh.bss.talent.entity;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;

import com.hh.bss.base.BaseEntity;



public class CvTransferTemplate extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "CvTransferTemplate";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_NAME = "name";
	public static final String ALIAS_TEMPLATE_CONTENT = "templateContent";
	public static final String ALIAS_KEYWORD_PAIRS = "keywordPairs";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=10)
	private java.lang.String id;
	@Length(max=10)
	private java.lang.String name;
	@Length(max=10)
	private java.lang.String templateContent;
	@Length(max=10)
	private java.lang.String keywordPairs;
	//columns END

	public CvTransferTemplate(){
	}

	public CvTransferTemplate(
		java.lang.String id
	){
		this.id = id;
	}

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	public java.lang.String getId() {
		return this.id;
	}
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	public java.lang.String getName() {
		return this.name;
	}
	public void setTemplateContent(java.lang.String value) {
		this.templateContent = value;
	}
	
	public java.lang.String getTemplateContent() {
		return this.templateContent;
	}
	public void setKeywordPairs(java.lang.String value) {
		this.keywordPairs = value;
	}
	
	public java.lang.String getKeywordPairs() {
		return this.keywordPairs;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Name",getName())
			.append("TemplateContent",getTemplateContent())
			.append("KeywordPairs",getKeywordPairs())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof CvTransferTemplate == false) return false;
		if(this == obj) return true;
		CvTransferTemplate other = (CvTransferTemplate)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

